package cn.com.taurus.biz;

import cn.com.taurus.bean.ClientAccountBankBean;
import cn.com.taurus.bean.ClientAndBank;
import cn.com.taurus.entity.Bank;
import cn.com.taurus.impl.BankImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 * @author zhy
 * @createTime 2021-6-3 20:49:18
 * @remark 银行Biz层
 * @version 1.0
 */
@Service
public class BankBiz {
    @Autowired
    private BankImpl bankImpl;

    public int update(Bank bank){
        return bankImpl.update(bank);
    }
    
    public List<Bank> select(int caId){
        return bankImpl.select(caId);
    }
    
    public int bankRegister(Bank bank) {
        return bankImpl.bankRegister(bank);
    }
    
    public List<ClientAndBank> selectAllBank() {
        return bankImpl.selectAllBank();
    }
    
    public int deleteBankById(Integer bId) {
        return bankImpl.deleteBankById(bId);
    }
    
    public ClientAndBank selectBankById(Integer caId) {
        return bankImpl.selectBankById(caId);
    }

    public int updateBank(ClientAndBank clientAndBank) {
        return bankImpl.updateBank(clientAndBank);
    }
    
    public List<ClientAndBank> findClientAccount(String bankCode, String bankType) {
        return bankImpl.findClientAccount(bankCode,bankType);
    }

    public int insertBankSecond(ClientAccountBankBean clientAccountBankBean){
        return bankImpl.insertBankSecond(clientAccountBankBean);
    }

    public int insertClientAccountAndBank(ClientAccountBankBean clientAccountBankBean){
        return bankImpl.insertClientAccountAndBank(clientAccountBankBean);
    }

    public int insertBank(String bankCode, String bankType, Integer bId){
        return bankImpl.insertBank(bankCode,bankType,bId);
    }
    public String selectBankCode(Integer bId) {
        return bankImpl.selectBankCode(bId);
    }

}